﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Item : MonoBehaviour
{

    public int length, width;
    public int posX, posZ;
    public int desX, desZ;

    public ItemType type;
    // Start is called before the first frame update
    public void Start()
    {
        GameController.instance.RegisterToMain(length, width, posX, posZ);
    }

    // Update is called once per frame
    void Update()
    {

    }

    public virtual GameObject[] TaskDequeue(int num)
    {
        return null;
    }

    public virtual void TaskEnqueue(GameObject[] gameObjects)
    {
       
    }

    public virtual void ChangeState()
    {

    }

    private void OnMouseUp()
    {
        GameController.instance.AddNetizenTarget(this, desX, desZ);
    }
}